﻿#region 命名空间

using AutoMapper;
using Microsoft.Practices.Unity;
using Sharp.DataTransferObject;
using Sharp.Infrastructure;
using System.Runtime;
using Sharp.Web.Models;
#pragma warning disable 618

#endregion

namespace Sharp.Web
{
    /// <summary>
    ///     App的初始化
    /// </summary>
    public class ViewModelMapper
    {
        public static void Initialize()
        {
            Mapper.Initialize(cfg =>
            { 
                cfg.CreateMap< UserDTO, UserIndexModel>()
                   .ReverseMap();

                cfg.CreateMap<UserDTO, UserModel>()
                   .ReverseMap();
            });
        }
    }
}